 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Student Add</title>


        <!-- UTF-8 is the recommended encoding for your pages -->
        <meta http-equiv="content-type" content="text/xml; charset=utf-8" />
        <title>Zapatec DHTML Calendar</title>

        <!-- Loading Theme file(s) -->
        <link rel="stylesheet" href="./css/yellow.css" />
        <link rel="stylesheet" href="./css/small.css" />

        <!-- Loading Calendar JavaScript files -->
        <script type="text/javascript" src="./js/zapatec.js"></script>
        <script type="text/javascript" src="./js/calendar.js"></script>
        <!-- Loading language definition file -->
        <script type="text/javascript" src="./js/calendar-en.js"></script>


        <script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
        <style type="text/css">
            <!--
            body {
                background-color: #FFFFCC;
            }
            -->
        </style>
        <link href="file:///C|/Documents and Settings/Administrator/My Documents/NetBeansProjects/ERP/web/csss/erpstyles.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            <!--
            @import url("../csss/erpstyles.css");
            -->
        </style>
    </head>

    <body>
        <table width="908" border="0" cellspacing="0" cellpadding="0" align="center">

            <tr>
                <td width="908" bgcolor="#FFFFCC">

                    <%@ page import="java.io.*"%>
                    <%@ page import="java.util.*"%>
                    <%@ page import="java.sql.*"%>
                    <%@ page import="accounttrans.*"%>
                    <form id="form1" name="form1" method="post" action="./jvupdate">
                        <%
                                    String err=null;
                                         ArrayList al=(ArrayList)request.getAttribute("AL");
		   
                                       System.out.println("al at Invoice Viewlist :%" + al);
                                       if(al!=null)
                                        {
                                Iterator it=al.iterator();
                        %>

                        <% while(it.hasNext())
                                           {
                                                   JvBean jb=(JvBean)it.next();
		
                   String jvno					=	jb.getJv_No();
                   String jvdate				=	jb.getJv_Date();
                   String account				=	jb.getAccount_Head();
                   String debit				=	jb.getDebit_Amount() ;
                   String credit				=	jb.getCredit_Amount();
                   String tamt					=	jb.getTotal_Amount();
                   String narration			=	jb.getNarration();


                   String[] jnv=jvdate.split("-");
                   String jdate  =  jnv[2]+"-"+jnv[1]+"-"+jnv[0];
				
                        %>
                        </p>



                        <div align="center">
                            <table width="750" border="0" cellspacing="0" cellpadding="0">
                                <tr bgcolor="#FFFFCC">
                                    <td height="40" colspan="5"  background="images/erpimg.jpg" class="username"  ><div align="center" class="login">Update</div>		  </td>
                                </tr>
                                <tr>

                                    <tr>
                                        <td width="183" bgcolor="#7DDF90" class="columnname">Journal Voucher No </td>
                                        <td width="167" bgcolor="#7DDF90" class="columnname"><input name="jvno" type="text" class="tabledata" value="<%=jvno%>" size="20"/></td>
                                        <td width="162" bgcolor="#7DDF90" class="columnname"> <div align="center">Date </div></td>
                                        <td width="212" bgcolor="#7DDF90" class="columnname"><input name="jvdate"type="text" class="tabledata" id="jvdate" value="<%=jdate%>" size="25" />
                                            <button id="jvb">...</button>
                                            <script type="text/javascript">
                                                Zapatec.Calendar.setup({
                                                    step              : 1,
                                                    electric          : false,
                                                    inputField        : "jvdate",
                                                    button            : "jvb",
                                                    ifFormat          : "%d/%m/%Y",
                                                    daFormat          : "%d/%m/%Y"
                                                });
                                            </script></td>
                                        <td width="26" bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#7DDF90" class="columnname">Account</td>
                                        <td bgcolor="#7DDF90" class="columnname">Debit</td>
                                        <td bgcolor="#7DDF90" class="columnname">Cretdit</td>
                                        <td bgcolor="#7DDF90" class="columnname">Narration</td>
                                        <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#7DDF90" class="columnname"><input name="account" type="text" class="tabledata" value="<%=account%>"/></td>
                                        <td bgcolor="#7DDF90" class="columnname"><input name="debit" type="text" class="tabledata" value="<%=debit%>" /></td>
                                        <td bgcolor="#7DDF90" class="columnname"><input name="credit" type="text" class="tabledata"  value="<%=credit%>"/></td>
                                        <td bgcolor="#7DDF90" class="columnname"><input name="narration" type="text" class="tabledata"  value="<%=narration%>"/></td>
                                        <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                        <td class="columnname">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                        <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                        <td bgcolor="#7DDF90" class="columnname"><input name="Submit" type="submit" class="tabledata" value="Submit" /></td>
                                        <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                        <td bgcolor="#7DDF90" class="columnname">&nbsp;</td>
                                    </tr>
                            </table>
                            <%}%>
                            <%}%>
                        </div>
                    </form>
                    <p align="left" class="preivileges">&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p></td></tr>
        </table>
    </body>
</html>
